Vectorized gradient and added hessian to propagate