Refinement of functions to try to find clustering via examination of neighbors