The server code for the Sanity Gem