Added version one of the index code.