Updated getCommand.