Code for Pseudo Quant