Code

Enhance prepare_update_file to add support for refreshable file IO