Server functionality.