Any particular reason to use the index? Anything special about it? I think this can be simplified if the order isn't important. If the order is important, it looks a bit fragile.