Modified the check script to use asynchronus requests.