Added B matrix