Index spells with their name rather than constantly looping.