Use sequence number for tasks.