Why not constrain search to allowed distances? (Doh.)