Now uploading is done in the background and does not affect the rest of the application.