Started to implement the autoscaling feature. Still not done.