First attempt on setting up the chunk processing of data, not working