Work in progress on calculating gradients of pdf for the parameter estimates.