Changed mindist3ss=15 to mindist3ss=8