Added computeJacobian function with arguments