Add unique IDs to tasks