       if not value?
         # Prepare the default value:
         value =
+          id: 'WORK'
           name: 'Work'
           estimated: 0
           elapsed: 0

        alert('Another Pomodoro is already active')
      else
        $scope.task.lastUpdatedTime = Date.now()
        timer = window.setInterval () ->
          updateDelta()
          $scope.$apply()
        , 10000
        $scope.pomodoro =
          task: $scope.task
          type: 'task'

      if t.name? and t.estimated? and t.elapsed?
        # If editing, it's already done being updated.
        if not $scope.editing
          # If newly created, it needs to be added to the parent and to have an ID made.
          $scope.task.children.push $scope.editTask
          makeId($scope.editTask)

        $scope.showCreate = false
        save()
