Fix issue with large S3 values. Closes #11.