Updated flowchart to represent latest changes