Added flag newTask