Rewrote class method processCommand