Added an option to provide initial value of the derivative