Server functionality, responding to requests.