Allow for setting sleep interval