Minor monitor.rb improvements