Adding OS upload functions and S3 functions.