Implementation of get with provenance.