Fixed bugs. Now networking seems to work.