Fixed bug in monitor analysis: visited was not being updated.