Add option to use config file