Clean up network communication and add time syncing