Added function to get new task id
Added function to get new task id