Removed `checkDistances` and associated variables