A simple config parsing code.