Transaction function added.