Added die function.