Refactored some .ini code for future reuse.