Renamed state_machine files and variables.