Added populateNamespace functionality.