Couple of tidy-ups in bug monitoring script.