Better way to register the namespaces.