Added method to process newTransaction