Server code complete, subject to testing.