Add `min`
Make resumable func public
Refactor: ResumableUpload