Modified backend to support auto-saving of models.