Added patches to be able to use lambda functions as functions in prob_str.