Adds domain and range.