Added flow diagrams