add sleep(millis) in the actions