Added tracking for previously found stocks and minor changes to output