Added onprogress and onfinish member functions