WIP: add own implementation of transaction context.