Add onprogress events in the background