Added code to app.config