Replaced boost::bind with c++0x lambdas.