Added checking code for the UDP Socket Messages