RAJKOT, India (AP) — Glenn Maxwell helped Australia snap its five-match losing streak as it beat India by 66 runs in their third and final ODI on Wednesday.

India won the series 2-1.

Allrounder Maxwell claimed 4-40 in 10 overs of spin as India was bowled out for 286 in 49.4 overs in an unconvincing pursuit of Australia’s 352-7 after the visitors chose to bat first.

Mitchell Marsh’s 84-ball 96 had helped Australia rectify its batting issues and fellow opener David Warner (56 in 34) also scored his third successive half-century. No. 3 Steve Smith (74) and No. 4 Marnus Labuschagne (72) piled on the runs.

Skipper Rohit Sharma, back in charge after resting the first two games, top scored for India with 81 off 57 and Virat Kohli scored 56 runs.

India won the first ODI in Mohali by five wickets and the second in Indore by 99 runs as the teams prepare for the start of next week’s Cricket World Cup in India.

Australia made five changes to its side from the previous game. Pat Cummins was back leading the team, with the fit-again duo of left-arm pacer Mitchell Starc and Maxwell included.

For India, Kohli, wrist spinner Kuldeep Yadav and pacers Jasprit Bumrah and Mohammed Siraj were also back in the playing side. Bumrah took 3-81 in 10 overs.