Replacing readFileAsync by readFile. Not sure why I used the sync one in the first place