Death function

Modularised death function