Refactor timeouts.