Updated to use readFileSync