Stein wrote the novel as an experiment with stream of consciousness writing and to explore the theme of mental illness.