Working on telnet
Move threads to new class