CR changes: used require() instead of JSON.parse(fs.readFileSync())