Added a mode command and handlers for responses