Added back use of mutex for transactions