Refactor monitor functions