Fixing provenance and removing unnecessary print statements