Updated for api generation, use ProgressEvent now