Made major changes. Changed code to alter the *min size* instead of the *desired* as this conflicted in production scenarios when using scaling policies.