Use std::bind instead of lambda here.