Modified with readFileSynce