Ensuring tasks are ordered consistently