Modified user app to support transaction struct