Add timeout for redirect