Rewrote server logic to run on a single conn.