Instead of always clearing list and then appending, it's now updated when needed