In window batch, changed timeout or sleep into ping