The present invention provides compounds of formula (I) and pharmaceutically acceptable salts thereof : (I) in which m, n, W, X, Y, Z, R1, R2, R3 and R4 are as defined in the specification, for use in the treatment or prevention of a diseases o conition mediated by a prokineticin, such as psychiatric and neurological conitions.