Added debug logging to meta-data output