Added switch priority flowchart