Add RGcdQ and minor change