Instead, accept PPS/SPS as function arguments. Makes the code shorter and significantly reduces diff in future commits.