Found a way to cut search off so bigger examples don't go wild. Cleaned up code.