Thread and message system added