 The detached tail, sometimes brilliantly coloured, continues to writhe after detaching, distracting the predator's attention from the fleeing prey.Lizards partially regenerate their tails over a period of weeks.Some 326 genes are involved in regenerating lizard tails.