Added a helper function to hunt for a particular parent.
Fixed a copy paste error. "MODULE_NAME" in watchdog function replaced by "pm".