Change codes according to new trend data format.