Change the number of parameters supplied to the function single_prob(), update downstream functions as well