Refactored loop/recure to reduce

No saved lines sorry.