Added timeout option to recursive check to avoid waiting for ever to a response.