Made some major changes to auto tuning.