Added network script
Lots of changes :-D