function processSync(rawMinChunks) {
                            let rawChunks = rawMinChunks
                            let processedChunks = []
                            let processedChunk

                            //TODO: move this switch within aggregation methods so that aggregation type can be chosen by property again
                            for (let i = 0; i < rawChunks.length; i++) {

                                /* Reporting we are doing well */
                                logAndHeartBeat(new Date(rawChunks[i][0]), ' Aggregating data ', rawChunks, i)

                                switch (datasetDef.config.aggregationMethod) {
                                    case "Avg":
                                        SA.logger.info("Aggrergating data using simple average")
                                        processedChunk = TS.projects.dataMining.functionLibraries.aggregationMethods.average(recordDef.properties, rawMinChunks[i])
                                        processedChunks.push(processedChunk)
                                        break
                                    default: 
                                        SA.logger.warn("Unknown aggregation method defined in dataset defintion config, falling back to simple average")
                                        processedChunk = TS.projects.dataMining.functionLibraries.aggregationMethods.average(recordDef.properties, rawMinChunks)
                                        processedChunks.push(processedChunk)
                                        break
                                }
                            }

                            return processedChunks
                        }
This function processes raw data chunks using a specified aggregation method
and returns the processed chunks.
@param rawMinChunks - an array of raw data chunks that need to be processed
@returns an array of processed chunks after aggregating the raw data using
either the "Avg" method or a fallback method of simple average if an unknown
aggregation method is defined in the dataset definition config.