Adding processing of results and logic when adding to the lists.