Server functions.