Simpler, faster code using PUMPINDEX()

Should also be more robust.