Adding MongoDB server as an argument
Adding a monitor process that sends the output of an algorithm to a MongoDB instance at every batch