Tried to implement threading.  Resulted in XChat crasshing on start.  Working on it - CHuong Ngo