Chunk Processing

I tried to create a more complex chunk processing method but ended up
with an easier. I'm not sure which one were to be the most efficient but
this one really works!