Starting to use C++11 constructs for callbacks.