Working PGM reader