Rate limiting

Closes #141