This paper offers a methodology to address the endogeneity of inputs in the directional technology distance function (DTDF) based formulation of banking technology which explicitly accommodates the presence of undesirable nonperforming loans -- an inherent characteristic of the bank's production...