Fixed indentation and grabbed sleep time from config