Here is the new method where the SLO logic has been refactored...