Refactoring of minStep, minimizeLts still not working.