Added state_machine to gem