Adds support for newlines. Starts to implement rate limiting.