Implemented ListenServer and ListenThread correctly