Functioning server demo in main.