Fleshed out the server struct with needed functions.