Fig. (4) Algorithm flow chart.