Add functions for TransactionFileInputStream