Format code
Remove server thread.