Improvements to the Worker API