Updated tasks.c