Implement config parser.