Changed CommandHandler std::function prototypes to use const reference