add a heartbeat interface.