Added transformNS - watch out, untested