The constitutional convention developed in the nineteenth century was that if one of the leaders was the last prime minister of the party, then he would be considered the overall leader of his party. If that was not the case then the leaders of both Houses were of equal status. As the monarch retained some discretion as to which leader should be invited to form a ministry, it was not always obvious in advance which one would be called upon to do so.