Tweaks to provenance submission and cleanup