Update monitoring.R