Add basic auto-tuning functionality