Added debug and program pipeline functions.