This was in the older code. @VikParuchuri, it looks like an off by one to me as well. Should `current_task_number` be between 0 and len(tasks) - 1?