Added a sleep delay to work around what appears to be undocumented rate limiting, though this needs more testing before it can be confirmed.