Use move to save std::functions