Optimize tone detection (40% faster now)