Copied some code into serv.c. Haven't fixed it up yet, but going to dinner