Declare hidden in main() rather than genNet()