Bug 846302 - Use generator "tasks" instead of for loops and delay
duplcation r=julienw