Build totally broken, trying to refactor pgm parser