Fixed executeCommands