Update communication method. Add heartbeat.