Added support for detecting hidden networks