Totti did recuperate in time and was eventually named to Lippi's final 23-man squad for the 2006 World Cup. Despite initial concerns over his match fitness, Totti was an important player in Marcello Lippi's team, and played in all seven games for Italy, including the victorious final against France, which Italy won on penalties, although he was substituted off in the 61st minute. He played the entire time in Germany with metal plates and screws in his ankle that had yet to be removed following the surgery. Throughout the tournament, he usually played as an attacking midfielder, in front of deep-lying playmaker Andrea Pirlo, and behind strikers Luca Toni, Alberto Gilardino, Vincenzo Iaquinta, or Filippo Inzaghi; these players were supported defensively by Gennaro Gattuso, Simone Perrotta and Daniele De Rossi in midfield. Totti finished the tournament with the joint-highest number of assists, along with Juan Román Riquelme (4). Totti set up Pirlo's goal from a short corner in Italy's opening 2–0 win against Ghana, Marco Materazzi's goal from a corner in Italy's final group match, a 2–0 win against the Czech Republic, and two goals in a 3–0 win against Ukraine in the quarter-finals: the opener by Gianluca Zambrotta, and one of Luca Toni's goals. Totti also scored a goal via an injury-time penalty in Italy's 1–0 round of 16 win over Australia on 26 June, and was involved in Del Piero's last-minute extra-time goal in the semi-final, which sealed a 2–0 victory for the Italians over hosts Germany, and a place in the World Cup final. Throughout the competition, Totti completed 185 passes and took 19 shots; in recognition of a successful tournament, he was selected for the 23-man All-Star Team.