Created static varible to control the number of times to add to the list...

....
Hmm... haven't I seen this code before?