Added UDP communication for real time monitoring.