Changed Heartbeat and sequential write wait fix