Changing the get domain function