Added ability to invoke a callback on worker completion