Adding onprogress support