Add function to select a namespace.