Ugly hacks around rate limiting.

Should really rewrite the code to better handle rate limiting.