Update toy code to allow for reading in formatted integrals