Updated monitor variable correctly