Improved transaction handling, added more high-level commands.