The Cricket Advisory Committee (CAC) on Tuesday appointed former India all-rounder and captain Ravi Shastri as head coach for a two-year period until the end of the 2019 ICC World Cup.

Former Indian players Zaheer Khan and Rahul Dravid have been appointed as bowling and batting consultant respectively.

“The BCCI announces the appointment of Mr. Ravi Shastri as the Head Coach, Mr. Zaheer Khan as the Bowling Consultant and Mr. Rahul Dravid who will be the Overseas Batting Consultant (Test cricket) for the Indian Cricket Team,” the BCCI confirmed in a media release.

Shastri pipped the likes of Virendra Sehwag, Tom Moody, Phil Simmons, Richard Pybus and Lalchand Rajput to replace Anil Kumble in the most high-profile coaching role in the sport.

Shastri had applied for the job after the BCCI, in the aftermath of Kumble’s resignation, decided to invite more applicants for the vacant coach’s role.

The CAC comprising Sachin Tendulkar, Saurav Ganguly and VVS Laxman announced the decision after interviewing all the candidates in Wankhede Stadium. Except Virendra Sehwag all other candidates appeared for the interview via skype.

Ravi Shastri was earlier appointed as the team director of the Indian Cricket team following India’s humiliating defeat in a test series against England in 2014. India saw a bit of success under his leadership between 2014 and 2016 – a period where India reached the semifinals of both the World Cup 2015 and also the World Twenty20 2016.

Anil Kumble had stepped down after India’s 180-run defeat against arch-rivals Pakistan in the Champions Trophy final on June 18.  He had cited ‘untenable’ relationship with skipper Virat Kohli as a reason for his resignation.

Shastri was expected to bag the job because he enjoys cordial equation with Kohli.

Shastri’s first appointment will be the tour to Sri Lanka, one that consists of three Tests, five ODIs and one T20I.