State machine for scale adjustment