Accidentally left out the listNetworks() function. Added it.