For some reason, I didn't bother making that code deal with rollover so if you're planning on running this for a long time (i.e. more than 49 days) it'll need a little restructuring. Search for millis and subtraction and you'll likely find one of the many discussions on the topic.