Added const & qualifier for an argument "functor"