Added support for hidden networks