Make time unsigned long instead of int to allow queuing for more than 32 seconds ahead