Shared server-side functionality.