Updated flow chart