Distance check commented out from index