Remove for-loop debug code