Added uploading code for periodic checks