Merging block NMS. Insertions still need fixing.