Refactored the worker and added a new combined-worker script