Change the way new values of neighbourhood function are computed