Corrected bug in getUndetected methods, and fixed incorrect monitoring
logic.