TLS: Adding heartbeat functionality.