 During this period, he was arrested by the Ottoman authorities.In 1905, Vlahov was released and went back to Bulgaria where he worked as a teacher in Kazanlak.In 1908, after the Young Turks revolution he began working in the Bulgarian secondary school in Thessaloniki again.