Fixed issue with parameters for chunk size being around the wrong way