Updated to use app.config for setttings