Switching state in two steps.
Changed max position