Removed calls to old monitor API; removed whitespace.