Extract sleep_interval to config file