Created in-place CBC functions. Also added a couple of consts.