Add spell casting code