Initial uploader function