Added constructor to the CommandHandler.