Add sleep-interval to main.