Implement autoscale created by deMartin and shared in issue #16