Some funky logic to get it to loop when you die.