Allow chunk size to be specified.