Add CPQ functions

See https://github.com/exitio/glider/pull/683
Definitely not my intentions, this will get moved back to glider.