Add a BQ function for this.