Now supports one-off tasks (frequency 0).