How do I make sure that it only runs for about one second?