Moved the S3 saving code into serial.js.