Adding option to use configuration file.