Handle incoming data over UDP. Needs cleanup.