Added domain register functionality.