Started work on p_confidence (does not work atm).