Changed the WorkQueue functor implementation