Use lambda instead of boost::bind