Edit model and logic.