Added denbug flag for pgm class