New version with out of sample accuracy.