PGD code gathering