Added ability to change chunking rate