Add trace library for better handling of serial port