Update load file function.