Updating nnet code