Use lambda instead of std::bind