Moved the initialization of CompotieMonitor to the init method.