Implementation of the metadata operation.