Add timeouts

Add timeout to fix redirect issue.