My bad. Its not working the way i want :)). the moment when i start it just print all 20 messages and ignore the delay.