How to add rows automatically with sleep?