Adaptive step size with limits now working