Improve monitor views code.