Added convenience functions to server.