Major update: implemented weekly aggregation.