 Therefore, after Liu Yin subsequently became the military governor of Qinghai, first in an acting capacity in 901 and then officially in 904, Liu Yin, in showing gratitude to Liu Chonggui, treated Liu Jun with respect.He invited Liu Jun to serve on his staff, serving with Li Yinheng and Ni Shu, often consulting them on key decisions.In 917, Liu Yin's brother and successor Liu Yan, who had previously been a vassal of Tang's successor state Later Liang, declared himself emperor of a new state of Yue (later changed to Han, and therefore historically known as Southern Han).