Refactoring. Add the namespace for internal function.