Document where a transaction is required. Fixes #46.