Replaced boost::bind with std