Fix terminology: 'step' -> 'state'.