Cleaned out the serial thread class.