Rework the server based on SF2.