Changed interface to take domain name instead of type name