Fixes #254 and forgot to def chunk_size