Switched from event handling from Boost Signals to std::function.