Working version, Corrected tradeStats issue