Modification to find_rbbh function