Created a map for the functions. Spells are stupid and useless, but I'll fix them later.