Changes to make it work with datomic transactor