Added regression support; started porting Bayes