Add some logging to upload script