Add function of localfile