Moving the files according to the tasks