Update the code to work with the latest API

Coming soon:
- Cloud haskell or some actors playground which is fault tolerant.