Fixed some issues with the Task library

Now it works. Mhm.