Refactors for workers class.