Internal Refactoring: Functions now stored in $functions instead of $config