Implement throttling and throw exceptions.

Signed-off-by: Ben Corlett <bencorlett@me.com>