Added metadata unpacking for local files.