Some nnet stuff I didi a while back