The present invention provides compounds of Formula (I):or a stereoisomer or pharmaceutically acceptable salt or solvate form thereof, wherein the variables A, L, Z, X1, X2, X3, X4, and X5 are as defined herein. The compounds of Formula (I) are useful as selective inhibitors of serine protease enzymes of the coagulation cascade and / or contact activation system; for example thrombin, factor Xa, factor XIa, factor IXa, factor VIIa and / or plasma kallikrein. In particular, it relates to compounds that are selective factor XIa inhibitors. This invention also relates to pharmaceutical compositions comprising these compounds and methods of treating thromboembolic and / or inflammatory disorders using the same.