Updated server to serve the state