Updated Gene Network function to feed NTO based on Jim"s code