Added matrixprice logic