Refactored GAIA to use CfgFunctions