Inlining namespaced functions to get them working