I recently purchased a house that has a pellet stove vented through a basement window. The original run was ran up just a couple feet below the soffit and the wood was discolored from the heat. After doing some research I also found it was over the maximum recommended length for 3" pipe. My question is can I run it out the window like this picture below safely or do I need another horizontal section? Thanks in advance for your help on this subject! I've also included pictures of how it was ran before and the inside setup.