Implemented BackgroundAgent upload