Transactions and get refactor