Re-structuring the algorithm, cleaning in order to leave just the SV-related info