Adding monitor.py