Add minimum-threshold for position-variances and some performance-fixes