Wrap ppt creation in a transaction.
Add some logging to pairing assignment