Added an option to specify the task numbers