minPointLength and further improvements