Wrote server portion.