Changed name of P2 to index