Added insertion of S3Flags