Changed processCommand execute to work with the new changes