Aggregate and organise the data