Add Write Spells prepared function