Improving reliability of cointegration function