Changed averageMapQualThreshold to 0.999 (i.e. 30)