Demotic (from δημοτικός dēmotikós, 'popular') is the ancient Egyptian script derived from northern forms of hieratic used in the Nile Delta. The term was first used by the Greek historian Herodotus to distinguish it from hieratic and hieroglyphic scripts. By convention, the word "Demotic" is capitalized in order to distinguish it from demotic Greek. The Demotic script was referred to by the Egyptians as sš/sẖ n šꜥ.t, "document writing," which the second-century scholar Clement of Alexandria called ἐπιστολογραφική, "letter-writing," while early Western scholars, notably Thomas Young, formerly referred to it as "Enchorial Egyptian." The script was used for more than a thousand years, and during that time a number of developmental stages occurred. It is written and read from right to left, while earlier hieroglyphs could be written from top to bottom, left to right, or right to left. Parts of the Demotic Greek Magical Papyri were written with a cypher script. Early Demotic (often referred to by the German term Frühdemotisch) developed in Lower Egypt during the later part of the Twenty-fifth Dynasty, particularly found on steles from the Serapeum of Saqqara. It is generally dated between 650 and 400 BC, as most texts written in Early Demotic are dated to the Twenty-sixth Dynasty and the subsequent rule as a satrapy of the Achaemenid Empire, which was known as the Twenty-seventh Dynasty. After the reunification of Egypt under Psamtik I, Demotic replaced Abnormal Hieratic in Upper Egypt, particularly during the reign of Amasis II, when it became the official administrative and legal script. During this period, Demotic was used only for administrative, legal, and commercial texts, while hieroglyphs and hieratic were reserved for religious texts and literature. Middle Demotic (c. 400–30 BC) is the stage of writing used during the Ptolemaic Kingdom. From the 4th century BC onwards, Demotic held a higher status, as may be seen from its increasing use for literary and religious texts.