Removed curly braces from one line if statement.
Removed app.config as its no longer used.