Debugging done for B-L, written summary functions