Don't keep looping when cio runs out of results