Replaced std::function with Reaction's