Implemented the new aggregation function. MP AI doesnt work