Added config file support.