how similar is this QR compared to CEQR? Can we generalize some of the code to be used by both?