Change boost::bind to a lambda.