       $scope.task = value
       $scope.hierarchy = [value]
       $scope.$apply()
+
+      # Launch another fetch to get the live Pomodoro, if one exists.
+      # This one must wait until all the tasks are retrieved.
+      storage.fetch 'pomodoro', (value) ->
+        if value?
+          task = findTask(value.task)
+          $scope.pomodoro =
+            active: true
+            type: 'task'
+            task: task
+            delta: value.delta
+            start: Date.now()
+            end: Date.now() + value.delta * 60 * 1000
+          $scope.$apply()
+          startTimer()
 
     timer = undefined
 

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

          end: Date.now() + 25*60*1000
          delta: 25
          active: true
        save()

    $scope.newChild = () ->
      $scope.showCreate = true
