Rewrite the get_rows method for CMR and BPR