Adding factors function in Autotuner