The Grand Secretariat, or the Cabinet, was nominally a coordinating agency but de facto the highest institution in the imperial government of the Chinese Ming dynasty. It first took shape after the Hongwu Emperor abolished the office of Chancellor in 1380 and gradually evolved into an effective coordinating organ superimposed on the Six Ministries. There were altogether six Grand Secretaries, though the posts were not always filled. The most senior one was popularly called Senior Grand Secretary. The Grand Secretaries were nominally ranked as mid-level officials, ranked much lower than the Ministers, heads of the Ministries. However, since they screened documents submitted to the emperor from all governmental agencies, and had the power of drafting suggested rescripts for the emperor, generally known as piàonǐ (票擬) or tiáozhǐ (條旨), some senior Grand Secretaries were able to dominate the whole government, acting as de facto Chancellor. The term nèigé itself is now used to refer to the modern cabinet in Chinese.