Added internal server thread