Change all data types to ones that Qt can buffer between threads