Added a progress call back. This will not work however, because the save function is synchronous.