Maintain order of tasks