Implement name and ns functions.