Complete porting of Domain.