Made the utitlity functions available elsewhere, as well as added namespaces to them.