Added code to attempt to create complex networks