Fix up processCommand