Add timeout feature, extra testing, and cache_cas checks.