Side-effects for transactions.

Made it easy to add n side-effects to a given transaction.