Generate namespace and assignment