Now assigns spells to list correctly.