Modifying stock_compare, (still working)