Added HeartBeat to check for dead connections