The thing I changed is the heartbeat, I changed all the delays in hearbeat() and in pulse() into non blocking delays will test