diff --git a/src/cell.c b/src/cell.c
index b869803f15a63d380dedbc0182e1100bb97f9bc2..79ccf02118f8babaafde40fcd17238273c9c7f5e 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -190,6 +190,7 @@ int cell_pack(struct cell *restrict c, struct pcell *restrict pc,
   pc->hydro.count = c->hydro.count;
   pc->grav.count = c->grav.count;
   pc->stars.count = c->stars.count;
+  pc->maxdepth = c->maxdepth;
 
   /* Copy the Multipole related information */
   if (with_gravity) {
@@ -292,6 +293,8 @@ int cell_unpack(struct pcell *restrict pc, struct cell *restrict c,
   c->hydro.count = pc->hydro.count;
   c->grav.count = pc->grav.count;
   c->stars.count = pc->stars.count;
+  c->maxdepth = pc->maxdepth;
+
 #ifdef SWIFT_DEBUG_CHECKS
   c->cellID = pc->cellID;
 #endif
diff --git a/src/cell.h b/src/cell.h
index 575b764b9b2d85799a0e4e39f2e44c30b2ca02cb..a5d0f7c61dc871ca710c3bd2e2a486fe7a80b868 100644
--- a/src/cell.h
+++ b/src/cell.h
@@ -149,6 +149,9 @@ struct pcell {
 
   } stars;
 
+  /*! Maximal depth in that part of the tree */
+  int maxdepth;
+
   /*! Relative indices of the cell's progeny. */
   int progeny[8];