Added multi_json serialization. Made worker functional