Update PiGenerator.java