Added anti clustering functionality