I think @adampalay was suggesting `self.task_states[-1]`, which means the same thing as `self.task_states[len(self.task_states) - 1]`