Subsequently, King Zhaoxiang's foreign advisor, Fan Sui, advised the king to abandon those fruitless campaigns against distant states. King Zhaoxiang heeded Fan's advice and changed Qin's foreign policy to adopting good diplomatic relations with distant states (Yan and Qi), while concentrating on attacking nearby states (Zhao, Han and Wei). As a consequence, Qin began to launch constant attacks on Han and Wei over the next decades, conquering several territories in its campaigns. By then, Qin's territories had expanded to beyond the eastern shore of the Yellow River and Han and Wei were reduced to the status of "buffers" from Qin for the other states in the east.