Added state transitions