Limiting the scope of a transaction