Adding nearest neighbor scaling