Start on the PGM parsing code.