@msmdev, how difficult would it be to speed up our optimisation by using derivative information? Is there a prototype implementation somewhere?