Making serial monitor multi-threaded