Working version of OCL_BM