Removed $instances array from worker classes