Fixed some more bugs. Seems like network is functioning.