hange doConnect logic based on recent compression on demand changes.