Better handle configuration file using a config.json file.