Lu Junyi's army was at the city of Dongchangfu, where they encountered Zhang Qing. Zhang Qing was skilled at using flying stones, injuring several generals of Liangshanbo in succession, causing Lu Junyi's army to suffer repeated setbacks. Later, the main forces of Liangshanbo surrounded the city, and Wu Yong devised a plan that ultimately led to Zhang Qing's capture and the fall of Dongchangfu.
Both contingents achieved success, and they returned to Liangshanbo. Song Jiang again offered to cede the chieftain's position to Lu Junyi, but Lu Junyi still refused.
"Brother, you are the one the people look to—why do you decline?" Lu Junyi said earnestly.
Song Jiang insisted, "If I remain in this position, it will truly be difficult to command the allegiance of the men."
Wu Yong then proposed another plan: they brought out the stone tablet inscribed with the names of the Heavenly Spirits and Earthly Fiends, and arranged the ranking order. When everyone looked, Song Jiang was ranked first and Lu Junyi second. Only then did Song Jiang stop declining.
As the story goes, once the stone tablet emerged, the one hundred and eight chieftains had their ranks settled. Song Jiang was at the top, Lu Junyi second, Wu Yong and Gongsun Sheng were third and fourth respectively. The remaining leaders, both senior and junior, each had their fixed place. Song Jiang then discussed with the leaders and built a grand Loyalty and Righteousness Hall, changing the Assembly Hall to the Loyalty and Righteousness Hall. He also had the large banner bearing the words 'Act on Behalf of Heaven' raised high.
On that auspicious day and hour, the large apricot-yellow banner inscribed with the words 'Act on Behalf of Heaven' was set up, its four gold characters fluttering majestically in the wind. Before the Loyalty and Righteousness Hall, lanterns and candles shone brightly, with incense smoke curling upward. Song Jiang led Lu Junyi and the other one hundred and eight leaders, burning incense and bowing repeatedly, swearing oaths to heaven, earth, ghosts, and gods, vowing to act on behalf of heaven, eliminate the cruel and pacify the good, and share in glory and wealth.
From then on, the heroes of Liangshanbo were fully assembled, their power greatly enhanced. Song Jiang was the leader of Liangshanbo, Lu Junyi was the deputy leader, and Wu Yong was the military strategist. The entire Liangshanbo was utterly loyal, with strict military discipline, robbing the rich to aid the poor, and was famous far and wide. Heroes from all directions all held them in high esteem. From then on, Liangshanbo became the foremost force among outlaws, renowned across the land, with the banner of acting on behalf of heaven flying high.