added configurable heartbeat interval and number of heartbeats before dead