Defining dependencies for tasks