Reduced the number of variables in spell