Adding spell logic