Removed debug statement
Extracted command class