Rate limiting

Fixes #35