With minor fixes, ghosts regeneration almost works!