Added PGN index code