Add device controller state machine