Updated Aggregation Script with script on User ID