Entity namespaces and functions