diff --git a/src/task.c b/src/task.c
index 996c5113bac9935f70a3aafafd58da965b13f5aa..ba83a14f54cc58f56cd39f1810eb4428a2edac96 100644
--- a/src/task.c
+++ b/src/task.c
@@ -58,7 +58,7 @@ const char *taskID_names[task_type_count] = {
     "grav_mm",     "grav_down_in",   "grav_down",
     "grav_mesh",   "cooling",        "star_formation",
     "sourceterms", "logger",         "stars_ghost_in",
-    "stars_ghost", "stars_ghost_out"};
+    "stars_ghost", "stars_ghost_out", "fof_self", "fof_pair"};
 
 /* Sub-task type names. */
 const char *subtaskID_names[task_subtype_count] = {
@@ -162,6 +162,8 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
     case task_type_kick1:
     case task_type_kick2:
     case task_type_logger:
+    case task_type_fof_self:
+    case task_type_fof_pair:
     case task_type_timestep:
     case task_type_send:
     case task_type_recv:
diff --git a/src/task.h b/src/task.h
index 9b3225fcf27b768059a2984847d20750d184f8d2..e70d4608337977c428faa5c69426eaa297b8a89d 100644
--- a/src/task.h
+++ b/src/task.h
@@ -71,6 +71,8 @@ enum task_types {
   task_type_stars_ghost_in,
   task_type_stars_ghost,
   task_type_stars_ghost_out,
+  task_type_fof_self,
+  task_type_fof_pair,
   task_type_count
 } __attribute__((packed));