Cleaned neighborhood calculations.