Remove the unused index variable and enumerate() call