Adding basic getMetadata support