Got rid of debug output and renamed functor.