// 500 represents the delay time in // milliseconds. 2000 = 2 secs, etc.