Changed the script to take a config file as command line argument