Allow to configure the sleep duration