KSMS is based on utilizing the Task Scheduler, just take a look at the ScheduleTask() UDF.
_________________________
There are two types of vessels, submarines and targets.