Framework for Credit Risk Management