added options for chunk size etc.