Added bulk of server stuff.