A set of APL2 functions is presented for a new definition of consistency of pairwise comparisons. By calculating an inconsistency for each comparison, these functions locate the source of inconsistency and can thus be used to improve relative judgements.