Added the user transaction logic.