Add dead-body detection and line termination