Separated the display function from the save function so they each run on their own thread and performance is optimized for real-time processing.