Refactored GAIA to use CfgFunctions instead