Update taskManager.c