Need to find a general way to specify the arguments of the performance function, which has unknown parameters depending on the user.