The Church of England voted Wednesday to allow women to be consecrated as bishops.

The House of Bishops voted 37 to 2, with one abstention, to allow female bishops, the Huffington Post reported. The House of Clergy approved the measure 162 to 25 and the House of Laity voted 152 to 45. There were four abstentions in the House of Clergy and five in the House of Laity.

The approval of female bishops came two years after a similar measure failed to gain a sufficient number of votes.

As the debate began Monday, several former opponents of female bishops in Church of England's General Synod said they would be willing to accept the measure even if they didn’t agree, the Guardian reported. This included conservative evangelical member Phillip Giddings and liberal member Tom Sutcliffe. Both men had previously voted against a similar measure presented in 2012.