safeApply added, and showTuningTriangles support added