The invention provides compounds of formula wherein R1, R3, R4, R5, R14, X and W are as defined in the specification and optical isomers, racemates and tautomers thereof, and pharmaceutically acceptable salts thereof; together with processes for their preparation, pharmaceutical compositions containing them and their use in therapy. The compounds are inhibitors of human neutrophil elastase.