Add func to generate task IDs