Super simple server impl, needs testing.