Add the metadata listener method