Server code finished.