Use $GLOBALS for cfg