Changed command execution style. To a case/switch system.