An Improved Provenance API