Added network threads and UI pieces