Automatic capacity control system