Works with three domains.