Improving a little something in chunk()