Added multiple network support