Generated a resource PieceIdentities to keep track of the values for
pieces.