More reasonable neighborhood calculation.