Adding networking, fixing scripts