Minor change in uploadService algorithm