Added logic to populate lc history