Added logic for fortify phase.