Added auto scale threshold into performAutoScale