Update buffer line reading and event aggregation algorithm