Added trailsegment uploading.