Refactors messaging between stream converter and viewer