Add support for old config format