Merge monitor.py