Added bb_read function