Adjusted cbr() function.