Streamline timeout code.