Add functions of saving and removing localfile