Refactor functions that don't need to be asynchronous.
Added API request throttling.