Modified example in doc for Monitor() function.