Rewrote init for domain.