Figure 5: Steps for Combined Algorithm.