Added tracing of namespace loading

This will be used to try and speed up loading.