Redesigned the flowchart for better flow