Added two new command line options min_task_len and max_task_len