Few bugfixes.
Changed some features for better nested transaction support.