Convert to scan to use lift

I switched the scan to an operator and cleaned up what looked like a lot of unnecessary code from the summing operations.