Working on mergeByDistance. Not making a lot of progress. :(