Moved function into anonymous namespace and rename.