Improved worker event api
Support for progress handler when writing and reading temp files