Changed merge to return instance of the new network