Nevertheless, both theories have had a significant impact on the cultural and legal development in China, and their influence remains visible today. The significant influence of the Legalist tradition in Chinese law has historically been overlooked. Although the Confucian ideology provided the fundamentals for the substance of traditional law, the Legalist school constructed the important framework of the traditional legal system. The Han dynasty retained the basic legal system established under the Qin but modified some of the harsher aspects in line with the Confucian philosophy of social control. The Han dynasty formally recognized four sources of law: lü (律: "codified laws"), ling (令: "the emperor's order"), ke (科: "statutes inherited from previous dynasties") and bi (比: "precedents"), among which ling has the highest binding power over the other three. Most legal professionals were not lawyers but generalists trained in philosophy and literature. The local, classically trained, Confucian gentry played a crucial role as arbiters and handled all but the most serious local disputes. Eventually, the incorporation of the essentials of Confucianist li into legal codes occurred with this Confucian conception dominating ancient Chinese law. Ch'ü concludes that the gradual process of Confucianisation of law was the most significant development in the legal system of China prior to 20th century modernization. The line between ruling by moral influence and ruling by punishment was not always clearly delineated. For example, li could be enforced by moral influence and legal means. The metamorphosis of li into law depended on its widespread and unvaried acceptance by society. Although the codification of law was largely completed by the Tang Code of CE 624, throughout the centuries the Confucian foundations of the Tang Code were retained, and indeed with some aspects of it strengthened by the later dynasties. The Great Ming Code, which was a model for the Qing code, covered every part of social and political life, especially family and ritual, but also foreign relations and even relations of earthly life with the cosmos. The Confucian notion that morality and self-discipline was more important than legal codes caused many historians, such as Max Weber, until the mid-20th century to conclude that law was not an important part of Imperial Chinese society. This notion, however, has come under extreme criticism and is no longer the conventional wisdom among Sinologists, who have concluded that Imperial China had an elaborate system of both criminal and civil law