The invention relates to compounds of formula (I) wherein R, R0, R1, m, n and X1 to X4 have the meaning as cited in the description and the claims. These compounds are useful as Histamine H3 receptor antagonists. The invention also relates to pharmaceutical compositions, the preparation of such compounds as well as the production and use as medicament.