MOB_24 : Cleaned up code to only edit a file when content has changed