Updated monitor.sh