Minor nit: this variable isn't needed. You can pass newDoc into `updateProject()`.