Added b_matrix