Sync readFile now working