Simpler loop, and just check every second: a curl is cheap.