Add file_type to process_open_files