Added new print function and updated the transaction handling