Added more of the AWS' own sample code