The graph construction works in distributed mode. Scatter/Gather tasks are initialized in P*Module declaration. This make initializing these task instances with the proper state quite hacky. Further improvements are still needed.