Add modality and environment namespaces.