Added GetJacobian function. Now working for the Head