Implemented model editing.