How CheckTransactions works