The current system only requires that the transaction being verified has appeared in a block. To ensure transaction finality, many projects require 6 confirmations before a transaction is considered verified. This provides protection against possible re-orgs/orphaned blocks of the Bitcoin blockchain.
In addition to the changes required to this library, this change will require smart contract code that accepts the the desired confirmation count.