Add handleCommand()