Moved initial function value and gradient into Settings