Use std::function instead of Lambda/FastDelegate.