Added functor to check parallelism