Added the code that sends buffers up to S3.