Added tolerance variables for 1D minimization