Server-side of #20.