Added termination signal and Heartbeat.