Instead of returning the mode of execution, command_init now returns whether we are done and need to exit. Thereafter, the mode of execution is now obtain though the command module’s API.