Added domainNStar function
Not yet functional