Add ServerState hook