Use non-deprecated methods for spells