C's QRBuilder

With minor changes