Added support for emitting to a namespace