Here is a question about this article: All students and faculty, regardless of religion, are required to agree to adhere to an honor code. Early forms of the Church Educational System Honor Code are found as far back as the days of the Brigham Young Academy and early school President Karl G. Maeser. Maeser created the "Domestic Organization", which was a group of teachers who would visit students at their homes to see that they were following the schools moral rules prohibiting obscenity, profanity, smoking, and alcohol consumption. The Honor Code itself was not created until about 1940, and was used mainly for cases of cheating and academic dishonesty. President Wilkinson expanded the Honor Code in 1957 to include other school standards. This led to what the Honor Code represents today: rules regarding chastity, dress, grooming, drugs, and alcohol. A signed commitment to live the honor code is part of the application process, and must be adhered by all students, faculty, and staff. Students and faculty found in violation of standards are either warned or called to meet with representatives of the Honor Council. In certain cases, students and faculty can be expelled from the school or lose tenure. Both LDS and non-LDS students are required to meet annually with a Church leader to receive an ecclesiastical endorsement for both acceptance and continuance. Various LGBT advocacy groups have protested the honor code and criticized it as being anti-gay, and The Princeton Review ranked BYU as the 3rd most LGBT-unfriendly school in the United States.
What is the answer to this question: What was BYU's Honor Code mainly used for upon its creation?
cases of cheating and academic dishonesty