Attitudes towards homosexuality and masturbation were altered by the publications of Havelock Ellis. Ellis was the first person to say in print that masturbation was normal, and did not cause any medical problems. He was co-author of the first medical textbook in English on homosexuality in 1897. His work, with others, prepared the way for the later sexual revolution.