Richard Pybus, West Indies' high performance director, has agreed to take up the role of head coach full-time, replacing the interim coach Nic Pothas. Pybus' contract, ESPNcricinfo understands, will effectively run until the 2019 Test series against India, which follows the ODI World Cup in England.

The position of West Indies head coach had been vacant since Stuart Law resigned from the position less than two years into his job. He left West Indies to take up a four-year contract with the English county team Middlesex. Originally the fielding coach, Pothas was made interim head coach for the recent tour of Bangladesh that followed Law's exit. West Indies lost Test and ODI series 2-0 and 2-1 respectively, and won the T20Is 2-1.

Pybus took over as high performance director in February, his role requiring him to work alongside selectors and coaches across all levels of the game in the Caribbean. He had previously served as West Indies' director of cricket from 2013 to the end of 2016, when he chose not to renew his contract.

Pybus' return to West Indies cricket wasn't welcomed by everyone. The former West Indies opener Desmond Haynes questioned the process of appointing him - "It would be great to ask the [CWI] president [Dave Cameron] about this appointment and when was this position advertised," he wrote in a Facebook post.

Darren Sammy, who captained West Indies when Pybus was director of cricket, expressed disbelief at his return. "Lies lies lies... Must be fake news," Sammy tweeted, and a day later, in response to a reply: "Well I'm still hoping that nightmare is not true #fakenews he's not coming back at CWI."

ALSO READ - Haynes, Sammy question Pybus' return to West Indies

Pybus' stint as director of cricket was controversial - he was responsible for the policy that made participation in West Indies' domestic competitions mandatory for international selection across formats. This was in part responsible for a number of senior players choosing to focus solely on playing T20 leagues around the world.

Before his stints with West Indies, Pybus coached Pakistan - taking them to the final of the 1999 World Cup - and Bangladesh apart from a number of domestic teams around the world, working extensively in South Africa at the franchise level.

His last stint with an international team, Bangladesh, ended up lasting only five months after a disagreement over the terms of his contract in 2012. Last year, he was also shortlisted and interviewed for the role of India coach.