Modifications to switch provenance over to new api.