Most of the work needed to support multiple uploads at the same time.