Generalising the transaction import