Really fast distance checking.