Changed flowchart