Cleaned up network code. Next -> Dialogs