Used simpler method for parsing the environmental variables