Fix error in logic
Fix comma issue
Find CIMonitor from environment variable instead