Changed the xml parsing for settings to incorporate linq.