Add option for sleep time.