Add functions and structure for server setup