Expanded the arguments of user-provied sub-routine to calculate jacobians.