Added some server-side functions.