Added, and then commented out, working code to update calcAdjacencies