Adding the closeness rank function.