Reimplemented poping tasks from a queue, we shouldn't lose a task since now
0.1.2