SMS: Quantitative credit portfolio management