Optimal settings detector.