Refactored the automatic starting and definition of what to monitor