Added ability to start and end transaction at ORM.