Figure 5: Flow chart of RMS.