Made chunked upload easier to understand