Uploading final function