Changed name from doStuff to processNewCommand