Need to add some safeguards to check if the file was modified