Avoided sqrt in magic wand for speed