Maybe I'm just not searching right, since I couldn't find this anywhere, but here's the order for when you need to hack the ring.
while(device not found)
if(timer > 30000)
log = readlog()
logLine = log.getRandom()
logLine.CreatedOn = Now
log.Write(logLine)
timer.Reset()
else timer++