Added handing of storing snapshots in s3.