Reorganized magic rules to make more sense.