Temporarily commented out the server socket stuff. The server still sometimes freezes:(