To-do: Change current visualization flow to use WebSockets to pipe data asynchronously instead of waiting