Added transaction id as optional parameter