Made monitoring code use yaml config