Error with integrating price optimisation