Add CPQ functions

See https://github.com/exitio/glider/pull/683