Pb program framework