Some modifications needed to be able to restart sparrow3d