Rewrite Inflate/Deflate.