Support move semantics in worker class