Added qrule(points) functions