docs: function handleTask(options, config, progress, callback) {
  
    fs.ensureDir(options.task.workspace, (err) => {
      if (err) {
        // Call callback function with error.
        callback(err);
      } else {
        // Workspace of this task
        let ws = options.task.workspace + '/' + options.task.id;
  
        // Create directory of task workspace
        fs.ensureDir(ws, (err) => {
  
          // Error
          if (err) {
            // Directory could not be created.
  
            // Call callback function with error.
            callback(err);
          } else {
            // No errors
  
            // Handle all resolutions
            handleResolution(options, ws, 0, config, progress, (err) => {
  
              // Error
              if (err) {
                // It could not be handled all resolutions.
  
                // Call callback function with error.
                callback(err);
              } else {
                // No errors
  
                // Call callback function without errors. Task was
                // handled.
                callback(null);
              }
            });
  
          }
        });
      }
    });
  
  }