Changed messagesPerBatch from 100 to 50 to reduce Gmail rate limiting errors (still in development, I'm testing it)