Added basic server functionality.