PutMetadata implementation.