minor change: 0 level timeout taken out of loop: some speed gained.