PIVOT Flow Diagram