Update monitor.c