 There Stanevičius continued to care for the 3,000-piece library until his death from tuberculosis in 1848.In 1829, inspired by Johann Gottfried Herder, Stanevičius published "Dainos žemaičių" ("Songs of the Samogitians"), a sample of 30 of the most artistic and valuable Samogitian folk songs from his 150-song collection.Four years later he published an addendum ("Pažymės žemaitiškos gaidos") with melodies for these songs.