Added check for valid chunk sizes