Instead of commenting out a bunch of code inside this function, can you put this logic in a helper function to use during debugging?