Add spool threshold property, and logging for chunk size.