Integrated autotune