Continue on loop only if timeout has not expired