Fixes for push.
Added progress function, if not null.
Merge pull request #979 from camfitz/master

Fixes for push.