As people became more interested in discovering the causes of homosexuality, medicine and psychiatry began competing with the law and religion for jurisdiction. In the beginning of the 19th century, people began studying homosexuality scientifically. At this time, most theories regarded homosexuality as a disease, which had a great influence on how it was viewed culturally. There was a paradigm shift in the mid 20th century in psychiatric science in regards to theories of homosexuality. Psychiatrists began to believe homosexuality could be cured through therapy and freedom of self, and other theories about the genetic and hormonal origin of homosexuality were becoming accepted. There were variations of how homosexuality was viewed as pathological. Some early psychiatrists such as Sigmund Freud and Havelock Ellis adopted more tolerant stances on homosexuality. Freud and Ellis believed that homosexuality was not normal, but was "unavoidable" for some people. Alfred Kinsey's research and publications about homosexuality began the social and cultural shift away from viewing homosexuality as an abnormal condition. These shifting viewpoints in the psychological studies of homosexuality are evident in its placement in the first version of the "Diagnostic Statistical Manual" (DSM) in 1952, and subsequent change in 1973, in which the diagnosis of ego-dystonic homosexuality replaced the DSM-II category of "sexual orientation disturbance". However, it was not until 1987 in DSM-III-R that it was entirely dropped as a mental disorder.