Adding timeout-check-secs function