Added state_machine to Phase