Updates to gzip logic.