Updated to be more granular with transactions.
Merge pull request #24 from robhudson/transactions

Updated to be more granular with transactions.