Added processCommands