Include ModelConfig in functions