Added domain check.