Shah Alam II agreed to reside at Allahabad under Company protection and issue a farman granting the Diwani of Bengal, Bihar, and Orissa.