The invention relates to compounds of Formula (I), wherein ring A, X, (R1)n, R2, R3, R4, R4′, R5, n, and p are as described in the description; to pharmaceutically acceptable salts thereof, and to the use of such compounds as medicaments, especially as modulators of the CXCR3 receptor.