Understanding the mechanics of regeneration