Changed for loop for storing list.
Might be worth it to start storing the list in a DB