Updated compress S3 object script.