Fully working version of uploader.