Developed ParseConfig function