Implemented GetMetadata method.