Added -c option for specifying config file