Rajah Ranjit Singh had helped Shah Zaman save some cannon lost in the mud of the River Jhelum during the chaos of the Afghan retreat, and by charming the Shah, and impressing him with his efficiency, he was given charge of much of the Punjab, although he was only nineteen years old.