First part of adding Autotuning