Make write loop faster. Remove block from heatbeat thread. Its no longer necessary.