Added setDomain code to see the magic words