In February 1854, Robert Schumann had a mental collapse, attempted suicide, and was admitted, at his request, to a sanatorium in the village of Endenich near Bonn, where he stayed for the last two years of his life. In March 1854, Brahms, Joachim, Albert Dietrich, and Julius Otto Grimm spent time with Clara Schumann, playing music for her and with her to divert her mind from the tragedy. Brahms composed some private piano pieces for her to console her: four piano pieces and a set of variations on a theme by Robert Schumann that she had also written variations on a year earlier, as her Op. 20. The music by Brahms was not intended to be published, but for her alone. Brahms later thought to publish them anonymously, but eventually they were issued as his four Ballades, Op. 10, and "Variations on a Theme by Robert Schumann", Op. 9. Brahms dedicated the variations to both Schumanns, hoping that Robert would be released soon and rejoined with his family.