Added support for models, and improved method of loading config data.