601687 Disclosed are compounds of formula (I) and methods for their preparation. The compounds have an azaindole/Pyrrolo[2,3-b]pyridine core and are substituted with either a pyrimidine or triazine moiety which is substituted by R1, wherein R1 is N(A)CC(O)-N14R7 where A is a 4-8 membered saturated nitrogen-containing ring, and X is N or CR4 Also disclosed is the use of compounds of formula (I) as inhibitors of Janus kinases, a family of tyrosine kinases consisting of JAK1, JAK2, JAK3 and TYK2. The compounds are therefore useful as pharmaceuticals for treating a disease or condition such as a proliferative disorder, a cardiac disorder, a neurodegenerative disorder, an autoimmune disorder, a condition associated with organ transplantation, an inflammatory disorder, or an immunologically mediated disorder. In particular the pharmaceuticals are useful for treating asthma, transplant rejection and rheumatoid arthritis.