Any reason not to define @time and just call #prepare_metadata_file here?