Basic PGM parser.