New Method to parse config. Seems to work now.