Fixing metadata and logging tasks