Experimenting how to do heartbeats. Can be used as reference