Added logging of metadata