Fixed centrality and unit-tested