Finally getting the index thing worked out.