Improved updateDataMonitor.m