Du Xi, who was his adviser, and Xue Ti () told Sima Yi that the wheat will be ready for harvest the following year and Zhuge Liang would definitely come to seize the wheat. Since Longyou lacked food supplies, they should transport the wheat there that winter. Sima Yi said: "Zhuge Liang advanced towards Mount Qi again and attacked Chencang (陳倉; east of present-day Baoji, Shaanxi) but lost and withdrew. If he advances again, instead of attacking cities, he will call for a battle in the east of Long(you) and not the west. Zhuge Liang feels frustrated by the shortage of grain so he will definitely stockpile supplies when he returns (to Shu). Based on my prediction, he won't attack again if he doesn't have at least three harvests' worth of food supplies." Sima Yi then proposed to the Wei imperial court to mobilise farmers from Ji Province to Shanggui County and put them under the jurisdiction of Jingzhao, Tianshui, and Nan'an () commanderies. By 233, Sima Yi's agricultural plan came to fruition and became a source of food supplies for the three commanderies.