Move some settings into cfg file.