Update S3.php