Better timeouts and functions.