The message storage mechanism introduced in Petroleum Refining Library 2.2.5 provides the foundation for implementing dynamic flow monitoring. By combining the FlowDiscrepancy component with custom Java classes, developers can capture flow-rate changes, record relevant events, and preserve information for subsequent analysis. When a monitored flow changes, user-defined logic can create a message containing relevant data, such as the simulation time, current flow rate, magnitude of the change, and monitored location. The message structure is entirely application-specific and can be extended to include any additional information available in the model. Recorded messages can be retrieved by other model components for display, statistical analysis, or further processing. For example, an event history can help identify when a residual flow appears, how its rate evolves, and how long the flow persists. Recorded flow events can serve as input for custom calculations of the material diverted into a residual flow. Such estimates require flow-rate data, simulation timestamps, and an appropriate calculation method that accounts for changes in flow rate over time.