Updated index with positions, using positions in ranking, updated scripts.