Fix function parsing, and fix predictive_probability and probability.