Modify the code to work with new input format
+ filename of the expanded network.